<script>
	export default {
		onLaunch: function() {
			console.log('App Launch')
			getApp().globalData.common_worker = new Worker('./static/worker/common_worker.js');
			uni.$off()
		},
		onShow: function() {
			console.log('App Show')
			this.globalData.appVisibleState = 'onShow'
			
		},
		onHide: function() {
			console.log('App Hide')
			this.globalData.appVisibleState = 'onHide'
		},
		globalData : {
			attack_worker : null,
			totalExp : 0,
			monsters : []
		}
	}
</script>

<style lang="scss">
	*{
		box-sizing: border-box;
	}
	page{
		font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
		color: #abb2bf !important;
		font-size: 14px;
		height:100vh;
		background-color: #282c35;
		
	}
	image{
		vertical-align: top;
	}
	@font-face{
	    font-family: 'demonized';
	    src:url('@/static/fonts/demonized.ttf');
	}
	/* 滚动条整体样式 */
	::-webkit-scrollbar{
	  width: 4px;
	}
	/* 滚动条内嵌滑块 */
	::-webkit-scrollbar-thumb{
	  border-radius: 10px;
	  background: rgba(0,0,0,0.2);
	  box-shadow: inset 0 0 5px rgba(0,0,0,0.2);
	  -webkit-box-shadow: inset 0 0 5px rgba(0,0,0,0.2);
	}
	/* 滚动条边角 */
	::-webkit-scrollbar-corner{
	  border-radius: 0;
	  background: rgba(0,0,0,0.1);
	  box-shadow: inset 0 0 5px rgba(0,0,0,0.2);
	  -webkit-box-shadow:inset 0 0 5px rgba(0,0,0,0.2);
	}
	.hr {
		border: 0;
		padding-top: 1px;
		background: linear-gradient(to right, transparent, #000000, transparent);
	}
	.tab-panel{
		position: absolute;
		left:0;
		right:0;
		top:0;
		bottom:0;
		background-color: $game-color-1;
		z-index: 9999999;
	}
	/*颜色变量*/
	:root{
		--color-default:#abb2bf;
		--color-green:#4cd964;
		--color-blue:#0099cc;
		--color-yellow:#f0ad4e;
		--color-red:#ca352c;
		--color-red2:#dd524d;
		--color-purple:#c678dd;
	}
	.uni-numbox-btns{
		border: 1px solid #000;
	}
	.uni-numbox__value{
		border: 1px solid #000;
		margin:0 !important
	}
</style>
